<div id="header_sub">
    <div class="top">
        <div id="logo">
            <a href="<?=$this->public_model->getNonSSLURL()?>" style="margin-left:5px;">
                <img width="200px" height="100px" src="/<?=$logo?>" />
            </a>
        </div>
        <div class="city_subcribe">
             <table style="height:100px">
                <tr>
                    <td colspan="2"  style="text-align: right;vertical-align: text-top;">
                    <div class="menu_mn">
                        <ul>
            				<?php if(modules::run('login/is_logged_in')==false): ?>
                                <li><img style="vertical-align: text-top;" src="<?=TEMPLATE_IMAGE_PATH?>/icon_cart/cart.png" width="16px"/>&nbsp;<a href="<?=base_url()?>pay/moneyExchange">Cart</a></li>
                			 	<li><a title="" href="<?=base_url()?>login">Sign In</a></li>
                				<li><a title="" href="<?=base_url()?>login/playerSignup">Sign up</a></li>	
            				<?php else: ?>
           					    <li>Hello <a href="<?=$this->public_model->getNonSSLURL()?>account/"><?=$this->session->userdata['fullname'] ?></a></li>
               					<?if(modules::run('login/is_user_logged_in')):?>
          						    <li><img style="vertical-align: text-top;" src="<?=TEMPLATE_IMAGE_PATH?>/icon_cart/cart.png" width="16px"/>&nbsp;<a class="lastLi" title="" href="<?=$this->public_model->getNonSSLURL()?>shoppingcart">cart (<?=modules::run('shoppingcart/currentCartItem')?>)</a></li>
               					<?endif?>
               					<li><a class="lastLi" title="" href="<?=$this->public_model->getNonSSLURL()?>login/logout">Logout</a></li>	
            				<?php endif; ?>
             			</ul>
                    </div>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: middle;">
                        <!-- city -->
                        <?php if(count($citys) > 0): ?>
                            <form action="<?=base_url()?>city/choose_city" method="POST" name="frm_city">
                            <input type="hidden" name="action" value="frontback" />
                            <select name="City" class="choose_city" onchange="document.forms['frm_city'].submit(); return false;">
                            <?php foreach($citys as $city){?>
                                <option <?php if($this->session->userdata('city_session') == $city->id) echo 'selected="true"'; ?> value="<?=$city->id?>"><?=$city->name?></option>
                            <?php }?>
                            </select>
                            </form>
                        <?php endif; ?>
                    </td>
                                            
                    <td style="vertical-align: middle;">
                        <!-- subscribe mail  -->
                        <form onsubmit="return checkEmailNull();" method="post" action="">
                        <div class="subcribe" >
                            <div class="sub_email">Subscribe Email</div>
                            <div class="sub_txt"><input id="txtnamemail" name="txtaddemail" type="text"/></div>
                            <div class="sub_ok"><button  type="submit" name="submit" value="addemail" class="btn btn-default" type="button">OK</button></div>
                        </div>
                        </form>
                    </td>
                </tr>
             </table>
        </div>
    </div>
    <div style="clear: both;"></div>
</div>

<!--END Footer-->



<!-- message offline -->
<!--<div style="bottom: 0px;right:0px;z-index: 999997; position: fixed;"><div style="position:relative; display:inline-block; text-align:center; box-shadow:0 0 2px #666666; -moz-box-shadow:0 0 2px #666666; -webkit-box-shadow:0 0 2px #666666; white-space:nowrap; border-radius:4px 4px 0 0; -moz-border-radius:4px 4px 0 0; -webkit-border-radius:4px 4px 0 0; font-size:13px; font-family:Arial,Verdana,Helvetica,sans-serif; line-height:26px; color:#ffffff; cursor:pointer; height:26px; padding:2px 2px 0; background:#ffffff;"><div style="line-height:26px; height:26px; padding:0 10px 0 25px; background:url() no-repeat 6px 6px #3d3d3d; font-size:13px; font-family:Arial,Verdana,Helvetica,sans-serif; line-height:26px; color:#ffffff;">Sorry, we are currently offline.</div></div></div>>
<!-- support online -->
<!--
<script type="text/javascript">var subiz_account_id = "3867";(function() { var sbz = document.createElement("script"); sbz.type = "text/javascript"; sbz.async = true; sbz.src = ("https:" == document.location.protocol ? "https://" : "http://") + "widget.subiz.com/static/js/loader.js?v="+ (new Date()).getFullYear() + ("0" + ((new Date()).getMonth() + 1)).slice(-2) + ("0" + (new Date()).getDate()).slice(-2); var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(sbz, s);})();</script>
-->